锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置:锐英源 / 英语翻译 / C++开源英语 / Clipping Regions 剪切区域
导航
源代码下载
服务方向
人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发
联系方式
固话:0371-63888850
手机:138-0381-0136
Q Q:396806883
微信:ryysoft

Clipping Regions 剪切区域

You can use clipping regions to restrict your output to a specified subregion of the client area. To use a clipping region, you must select it into the device context associated with the display device.
你能使用剪切区域来限制你的输出到一个具体的客户区的子区域。为了使用剪切区域,你必须选择把它选入到和显示设置相关联的设备描述表中。
Clipping is used in Windows CE in a variety of ways. Word processing and spreadsheet applications clip keyboard input to keep it from appearing in the margins of a page or spreadsheet. Computer-aided design (CAD) and drawing applications clip graphics output to keep it from overwriting the edges of a drawing or picture.
在Windows CE中可以以很多方式使用剪切区域。字处理和电子制表应用程序修正键盘输入用来防止它显示在页面或电子表的边区上。计算机辅助设计(CAD)和绘图程序修正图形输出用来防止它越出图形或图片的边界外部。
Some device contexts provide a predefined or default clipping region. For example, the device context created by the BeginPaint contains a predefined rectangular clipping region that corresponds to the invalid rectangle that needs to be repainted. However, the device contexts created by the CreateDC and GetDC functions contain empty clipping regions; clipping is only done to keep graphics output in the window's client area.
一些设备描述表提供一个预先定义或者默认的剪切区域。举个例子,由BeginPaint创建的设备描述表包含一个预先定义的矩形剪切区域,它用于通知需要重新刷新的无效矩形区域。然而,由CreateDC和GetDC创建的设备描述表包含空的剪切区域;剪切只是为了保持输出到客户区而完成。
You can perform a variety of operations on clipping regions. Some of these operations require a handle identifying the region and some do not. For example, you can perform the following operations directly on a device context's clipping region. 对剪切区域可进行一系列操作。操作需要句柄,句柄能标识区域,有些操作不需要。比如,下面的操作可以直接处理设备上下文的剪切区域。

  • Determine whether part of the client area intersects a region by calling the RectVisible function. 判断客户区域的一部分是否和区域相交,通过调用RectVisible函数实现。
  • Exclude a rectangular part of the client area from the current clipping region by calling the ExcludeClipRect function. 排除一个矩形部分,调用ExcludeClipRect
  • Combine a rectangular part of the client area with the current clipping region by calling the IntersectClipRect function. 结合矩形部分,IntersectClipRect

After obtaining a handle identifying the clipping region, you can perform any operation that is common with regions, such as: 获取句柄后,操作多了:

  • Combine a copy of the current clipping region with a second region by calling the CombineRgn function. 结合当前剪切区域的拷贝,合并第二个区域,CombineRgn
  • Compare a copy of the current clipping region to a second region by calling the EqualRgn function. 比较,EqualRgn
  • Determine whether a point lies within the interior of a copy of the current clipping region by calling the PtInRegion function. 判断点是否在区域内,PtInRegion
友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内